package com.bh.shipment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bh.shipment.domain.JcShipmentTrack;

import java.util.List;

/**
 * 运单追踪Service接口
 *
 * @author slx
 * @date 2023-04-22
 */
public interface IJcShipmentTrackService extends IService<JcShipmentTrack> {
    /**
     * 查询运单追踪
     *
     * @param id 运单追踪主键
     * @return 运单追踪
     */
    public JcShipmentTrack selectJcShipmentTrackById(Long id);

    /**
     * 查询运单追踪列表
     *
     * @param jcShipmentTrack 运单追踪
     * @return 运单追踪集合
     */
    public List<JcShipmentTrack> selectJcShipmentTrackList(JcShipmentTrack jcShipmentTrack);

    /**
     * 新增运单追踪
     *
     * @param jcShipmentTrack 运单追踪
     * @return 结果
     */
    public int insertJcShipmentTrack(JcShipmentTrack jcShipmentTrack);

    /**
     * 新增运单追踪
     * @param shipmentId
     * @param eventAndImgs
     * @return
     */
    public int addTrack(Long shipmentId, String ...eventAndImgs);

    /**
     * 修改运单追踪
     *
     * @param jcShipmentTrack 运单追踪
     * @return 结果
     */
    public int updateJcShipmentTrack(JcShipmentTrack jcShipmentTrack);

    /**
     * 批量删除运单追踪
     *
     * @param ids 需要删除的运单追踪主键集合
     * @return 结果
     */
    public int deleteJcShipmentTrackByIds(Long[] ids);

    /**
     * 删除运单追踪信息
     *
     * @param id 运单追踪主键
     * @return 结果
     */
    public int deleteJcShipmentTrackById(Long id);

    /**
     * 删除运单追踪信息
     *
     * @param id 运单追踪主键
     * @return 结果
     */
    public int deleteJcShipmentTrackByShipmentId(Long shipmentId);

    /**
     * 获取运单轨迹
     * @param shipmentId
     * @return
     */
    public String getTrackForString(Long shipmentId);
}
